﻿<phone:PhoneApplicationPage 
    x:Class="OnlineMovies.Views.ShowLiricsDetail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:LART="clr-namespace:LART.Controls;assembly=LART.Controls.ScrollableTextBlock"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">
  
    <Grid x:Name="MainGrid">
        <Grid.RowDefinitions   >
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>
        <!--LayoutRoot is the root grid where all page content is placed-->
        <Grid x:Name="LayoutRoot" Background="{StaticResource bipivot}">
      
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="80"/>
            </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
            <StackPanel Orientation="Horizontal"  Margin="12,17,0,10" >
            <Image x:Name="imgTitle"   Style="{StaticResource DetailPagePivotTitleImage}" MouseLeftButtonDown="imgTitle_MouseLeftButtonDown"/>
                <TextBlock x:Name="tblkLyricTitle"  TextWrapping="NoWrap"  Style="{StaticResource DetailPagePivotTitle}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
             
            </Grid.RowDefinitions>
                
            <ListBox x:Name="lbxLyricsList" Margin="0,35,0,8" Grid.Row="1"  Foreground="White" VerticalAlignment="Top"  >

                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Vertical">
                                <LART:ScrollableTextBlock x:Name="tblkDescription" LineHeight="50" Text="{Binding Description}" Margin="0,0,50,20" Width="470" FontSize="28" MinHeight="600" HorizontalAlignment="Left" VerticalAlignment="Top"  Foreground="White" />
                            <!--<TextBlock x:Name="tblkDescription" Text="{Binding Description}" TextWrapping="Wrap" Width="457" Foreground="White"/>-->
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <Canvas>
                <TextBlock Canvas.Top="200" Canvas.Left="80" Text="lyrics not available" FontSize="28" x:Name="tblkFavNoLyricsDescription" Visibility="Collapsed" Foreground="White"/>
            </Canvas>
            <StackPanel Name="adstaLyrics" Grid.Row="2" Orientation="Vertical"  Margin="-4,10,0,0">
            </StackPanel>
        </Grid>
    </Grid>
        <StackPanel Name="adstackpl" Grid.Row="1" Background="Black" Orientation="Vertical"  >
        </StackPanel>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar >

        <shell:ApplicationBar x:Name="appbar" IsVisible="True" IsMenuEnabled="False">

            <shell:ApplicationBarIconButton x:Name="btnadd" IconUri="/Images/appbar.add.rest.png"  Text="Add Lyrics" Click="btnadd_Click_1"/>

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
